package com.xquant.system.api;

import com.xquant.common.core.constant.SecurityConstants;
import com.xquant.common.core.constant.ServiceNameConstants;
import com.xquant.common.core.domain.R;
import com.xquant.common.core.exception.ServiceException;
import com.xquant.system.api.domain.SysUser;
import com.xquant.system.api.factory.RemoteSysConfigFallbackFactory;
import com.xquant.system.api.factory.RemoteUserFallbackFactory;
import com.xquant.system.api.model.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 系统参数服务
 *
 * @author botao.yu
 */
@FeignClient(contextId = "sysConfigService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSysConfigFallbackFactory.class)
public interface SysConfigService
{
    /**
     * 查询系统参数
     *
     * @param configKey 系统参数key
     * @return 结果
     */
    @GetMapping("/config/getSysConfig/{configKey}")
    public String getSysConfig(@PathVariable("configKey") String configKey) ;

}
